#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPushButton>
#include <QVBoxLayout>
#include "myobject.h"
#include "worker.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

signals:

public slots:
    void onFirstPushed();
    void onSecondPushed();
    void onThreePushed();
    void onSelfPushed();
    void onExitPushed();
public:
    MyObject     *my;
    Worker       *m_pWorker;
    QThread      *m_pWorkerThread;
    QPushButton  *exitButton,*selfButton,*threeButton,*secondButton,*firstButton;

};

#endif // MAINWINDOW_H
